<template>
  <el-image :src="src" class="img-container">
    <div slot="error" class="image-slot">
      <img src="./header.png">
    </div>
  </el-image>
</template>
<script>
export default {
  props: {
    src: {
      type: String,
      required: true
    }
  }
}
</script>
<style scoped lang="scss">
.img-container {
  border-radius: 50%; // 圆角
  img {
    width: 100%;
  }
}
</style>
